# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-uritools
_pyname=uritools
pkgver=4.0.0
pkgrel=0
pkgdesc="Python functions for URI parsing, classification, and composition"
url="https://github.com/tkem/uritools"
license="MIT"
arch="noarch"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/tkem/uritools/archive/v$pkgver/uritools-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="
1925e0014072276451a3b409fac66a2c2c0562269f94e1e14c59557de2100d4b3633e5e8236045eab335f772a46bb00ad4890e4f0ab28968c1077307d10c65bd  uritools-4.0.0.tar.gz
"
